package com.sfac.springboot.modules.common.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author jzq
 * @date 2022/8/25 10:23
 */
@SuppressWarnings({"all"})
@Controller
@RequestMapping("/common")
public class CommonController {

    /**
     * localhost/common/403
     *
     * @return
     */
    @GetMapping("/403")
    public String errorPageFor403() {
        return "index2";
    }


    /**
     * localhost/common/404
     *
     * @return
     */
    @GetMapping("/404")
    public String errorPageFor404() {
        return "index2";
    }


    /**
     * localhost/common/500
     *
     * @return
     */
    @GetMapping("/500")
    public String errorPageFor500() {
        return "index2";
    }

}
